package com.springapp.mvc.resultBean;

import java.io.Serializable;

/**
 * Created by qinyy on 2018/6/30.
 */
public class BaseResult implements Serializable
{

    private String code;
    private String message;
    private Object data;

    public BaseResult() {
    }

    public BaseResult(ResultCode result) {
        this.code = result.getStatus();
        this.message = result.getMessage();
    }

    public void setResult(ResultCode result) {
        this.code = result.getStatus();
        this.message = result.getMessage();
    }

    public String getCode()
    {
        return code;
    }

    public void setCode(String code)
    {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
